﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using System.Drawing;
using System.Windows.Forms;
using Styx;
using Styx.Combat.CombatRoutine;
using Styx.Helpers;
using Styx.Logic;
using Styx.Logic.Combat;
using Styx.Logic.Pathing;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;
using Styx.Logic.POI;

namespace HarmoniousVigor
{
    public partial class Warrior
    {
        public bool protectionCombat()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (protectionPVPCombat())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (protectionDungeonCombat())
                    return true;
            }
            else
            {
                if (protectionQuestingCombat())
                    return true;
            }

            return false;
        }
        public bool protectionHeal()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (protectionPVPHeal())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (protectionDungeonHeal())
                    return true;
            }
            else
            {
                if (protectionQuestingHeal())
                    return true;
            }

            return false;
        }
        public bool protectionBuff()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (protectionPVPBuff())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (protectionDungeonBuff())
                    return true;
            }
            else
            {
                if (protectionQuestingBuff())
                    return true;
            }

            return false;
        }
        public bool protectionPullSpell()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (protectionPVPPullSpell())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (protectionDungeonPullSpell())
                    return true;
            }
            else
            {
                if (protectionQuestingPullSpell())
                    return true;
            }

            return false;
        }
    }
}
